package com.xu.lambda;

import java.util.function.Predicate;

/**
 *
 * @author xudenghui
 * @create 2023-04-05 13:50
 **/
public class PredicateDemo {
    public static void main(String[] args) {
        Predicate<String> isFlag = (String s)-> !s.isEmpty();
        boolean test = isFlag.test("999999");
        System.out.println(test);

    }
}
